package stud.mpgame.flash.net.description;

import stud.mpgame.network.MessageDescription;

import stud.mpgame.flash.game.GameWorld;

/**
 * ...
 * @author 
 */

class GameWorldMessageDescription extends MessageDescription {

	private static var ID:Int = IDescriptionManager.GAME_WORLD_MESSAGE_DESCRIPTION;

    private static var GAME_WORLD_USER_OBJECT_ID:Int = 1;

	private static var instance:GameWorldMessageDescription = null;
	
    public override function getID():Int {
        return ID;
    }
	
	public function new() {
		super();
		this.registerUserObject(GAME_WORLD_USER_OBJECT_ID, GameWorld);
	}

    public static function getInstance():GameWorldMessageDescription {
        if(instance == null){
            instance = new GameWorldMessageDescription();
        }
        return instance;
    }
	
	
}